<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>拉活列表</title>
<@fm.header />
	<script type="text/javascript" src="/resources/js/easyui/datagrid-detailview.js"></script>
    <script type="text/javascript" src="/resources/js/newtask/executionMarkList.js"></script>
<script type="text/javascript" >
    $(function() {
        $('#tt').datagrid({
            view: detailview,
            detailFormatter: function (index, row) {
                return '<div class="ddv" style="padding:5px 0"></div>';
            },
            onExpandRow : function(index, row) {
                var ddv = $(this).datagrid('getRowDetail', index).find('div.ddv');
                ddv.panel({
                    border : false,
                    cache : false,
                    href : '/brushApkRecord/apkList?code=' + row.code + '&execDay='+row.execDay,
                    onLoad : function() {
                        $('#tt').datagrid('fixDetailRowHeight', index);
                    }
                });
                $('#tt').datagrid('fixDetailRowHeight', index);
            }
        })
	})
    function doSearch() {
        $('#tt').datagrid('load', {
            brushName: $('#brushName').val(),
            brushId: $('#brushId').val(),
            startDay: $('#startDay').datebox('getValue'),
            endDay: $('#endDay').datebox('getValue')
        });
    }
</script>

</head>
<body class="cmp-list-body">
	<div id="tb" style="padding:3px">
    	<span>关键字:</span>
		<input id="brushName" class="easyui-textbox" style="width: 155px;" name="brushName"/>
		编号:
        <input id="brushId" class="easyui-textbox" style="width: 155px;" name="brushId"/>

        执行天:
        <input id="startDay" class="easyui-datebox" style="width: 155px;" name="startDay"/>
        <input id="endDay" class="easyui-datebox" style="width: 155px;" name="endDay"/>
        <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a>
	</div>
	<div id="mainPanle" region="center" border="false">

		<table id="tt" class="easyui-datagrid" title="拉活查询" idField="brushId"
			url="/brushApkRecord/listdata" singleSelect="true" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]">
		    <thead>		    
		    	<tr>
                    <th align="center" width="5%" field="brushId">编号</th>
		            <th align="center" width="5%" field="code">标记</th>
                    <th align="center" width="10%" field="brushName">名称</th>
		            <th align="center" width="10%" field="url">链接</th>
                    <th align="center" width="10%" field="execDay" >天</th>
                    <th align="center" width="10%" field="taskNum" >任务量</th>
		        </tr>
		    </thead>   
		</table>

	</div>
</body>

</html>